<div class="container member-container">
    <?php include $this->getViewFile('../lib/leftmenu'); ?>
    <div class="col-md-10 ">
        <div  class="bm-lookup-page">
        	<div class="lookup">
	            <div class="col-md-8">
		            <form action="<?php echo YzwController::U('user/goodsbm/query') ?>" method="post">
			                <div class="label">
			                	报名进度查询:
			                	<input type="text"  name="product_id" value="<?php echo $goods['product_id'] ?>" placeholder="请输入商品淘宝ID" class="pid">
			                	<input type="submit" class="btn" value="查找" >
			                </div>
		            </form>
		        </div>
		        <div class="col-md-1">
		            <input class="btn tousu" type="button" onclick="window.open('http://bbs.1zw.com/forum-73-1.html');" value="投诉">
	            </div>
	        </div>
        	
        	<div class="good-bm">
				<div class="good-info">
					<div class="pull-left img">
						<img class="img" src="<?php echo $goods['pic_url'] ?>" alt="<?php echo $goods['title'] ?>"/>
					</div>
					<div class="pull-left desc">
						<a class="title" href="<?php echo $goods['detail_url'] ?>" target="_blank"><?php echo $goods['title'] ?></a>
			            <ul>
							<?php if ($goods['promo_price']): ?><li><div class="lable">报名价格：</div><div class="content"><?php echo $goods['promo_price'] ?></div></li><?php endif; ?>
			              	<?php if ($goods['cat_id']): ?><li><div class="lable">报名类目：</div><div class="content"><?php echo CategoryModel::model()->getCategory((int) $goods['cat_id'], 'cat_name') ?></div></li><?php endif; ?>
			              	<?php if ($goods['admin'] && !empty($goods['is_show_wangwang']) ): ?>
			              		<li>
			              			<div class="lable">审&nbsp&nbsp核&nbsp&nbsp人：</div>
			              			<div class="content">
			              				<a title="<?php echo $goods['admin']?>" target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;site=cntaobao&amp;s=2&amp;charset=utf-8&amp;uid=<?php echo urlencode($goods['admin'])?>"><?php echo $goods['admin']?><img src="http://amos.im.alisoft.com/online.aw?v=2&amp;site=cntaobao&amp;s=2&amp;charset=utf-8&amp;uid=<?php echo urlencode($goods['admin'])?>" alt=""></a>
			              			</div>
			              		</li>
			              	<?php endif; ?>
			              	<?php if(!empty($goods['note'])): ?>
								<li>
									<!-- 
									<div class="info-note">
										<span class="bold"><?php echo $goods['note_title'];?></span>
										<span>
											<?php echo $goods['note'] ?>
										</span>
									</div>
									 -->
									<div class="lable"><?php echo $goods['note_title'];?></div>
			              			<div class="content info-note">
			              				<?php echo $goods['note'] ?>
                                        <?php
										if($goods['status'] == 3){
											echo "<br/>邮寄地址：福建省 厦门市 集美区 杏林湾商务运营中心2号楼24层1折网 (".$goods['admin']." 收) 180-3015-1020 样品无寄回，请慎重哦（样品里面记得附上产品id）不收到付的样品";
										}
										?>
			              			</div>
								</li>
							<?php
							endif;
							?>
			    		</ul>
			        </div>
					<div class="clearfix"></div>
				</div>
				
				<div class="line"></div>
				
				<div class="bm-info">
					<div class="info-title">最新动态：</div>
					<div class="info-color-list">
						<?php 
							foreach ($audit_list as $rs) {
						?>
							<div class="info-row">
								<span class="info-row-color <?php if($rs['action_type'] != 2) echo "green"; else echo "red";?>">
									<?php echo $rs['status'];?>
								</span>
								<div class="info-row-text">
									<div><?php echo $rs['m_d'];?></div>
									<div><?php echo $rs['h_i_s'];?></div>
								</div>
							</div>			
						<?php
				    	}
				    	?>
					</div>
					
					<div class="info-title">历史记录：</div>
					<table class="info-history ">
						<thead>
		                    <tr class="bold center">
		                        <td width="150">报名时间</td>
		                        <td width="150">结束时间</td>
		                        <td width="100">是否邮寄过样品</td>
		                        <td width="350">结束方式</td>
		                        <td width="100">查看</td>
		                    </tr>
		                </thead>
		                <tbody>
		                	<?php 
								foreach ($goodsbmlist as $bm) {
							?>
								<tr>
			                        <td width="150"><?php echo date("Y-m-d H:i:s" ,$bm->start_time); ?></td>
			                        <td width="150"><?php echo date("Y-m-d H:i:s" ,$bm->end_time); ?></td>
			                        <td width="150"><?php echo $bm->isdelivery ? '是' : '否';; ?></td>
			                        <td width="350">
			                        	<div class="black"><?php echo $bm->getHtmlStatus($bm); ?></div>
			                        	<div class="left"><?php echo $bm->note; ?></div>
			                        </td>
			                        <td width="50">
			                        	
			                        	<a class="blue" href=' <?php echo Yii::app()->createUrl('user/goodsbm/query', array('goods_id' => $bm->goods_id)) ?>' >查看详情</a>
			                        </td>	                    
			                    </tr>
											
							<?php
					    	}
					    	?>
		                </tbody>
					</table>
					
				</div>
				<div class="clearfix"></div>
			</div>
        
        </div>
        
        
        
    </div>
    <div class="clearfix"></div>
</div>





